package com.huawei.appgallery.festivalanimation.particle.initializers;

import com.huawei.appgallery.festivalanimation.particle.Particle;
import java.util.ArrayList;
import java.util.List;

public class ParticleInitializer implements IParticleInitializer {
    private List<IParticleInitializer> mInitializers = new ArrayList();

    public void initParticle(Particle particle) {
        for (IParticleInitializer initParticle : this.mInitializers) {
            initParticle.initParticle(particle);
        }
    }

    public void addInitializer(IParticleInitializer iParticleInitializer) {
        if (this.mInitializers == null) {
            this.mInitializers = new ArrayList();
        }
        this.mInitializers.add(iParticleInitializer);
    }
}
